package com.example.mq.listener;

import com.example.mq.annotation.MQListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
 * @className: SysQueueMessageListener
 * @author: chentao
 * @date: 2025/3/25 下午3:05
 * @Version: 1.0
 * @description:
 */
@MQListener(exchange = "sitc.add.exchange", queue = "sitc.user.add.queue", routingKey = "user.add", isTopic = false)
public class SysMQQueueMessageListener implements SysMQMessageListener {

    Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void onMessage(String message) throws Exception {
        logger.warn("Queue received : {}", message);
    }
}
